package top.guxx.mall;

import java.net.URL;
/**
 * @Author：Guxx
 * @Description：
 * @Date：2024/10/27 23:54
 * @Filename：LogbackConfigCheck
 */
public class LogbackConfigCheck {
    public static void main(String[] args) {
        String classPath = "logback-spring.xml";
        URL url = Thread.currentThread().getContextClassLoader().getResource("logback-spring.xml");
        if (url == null) {
            System.out.println("logback.xml配置文件不存在");
        } else {
            System.out.println("logback.xml配置文件路径：" + url.getPath());
        }
    }
}
